package io.linfeng.modules.utils;

import lombok.Data;
import lombok.experimental.Accessors;

import java.awt.*;

/**
 * @author ：ytl
 * @date ：Created in 2024/6/28 14:35
 * @description：
 */
@Data
@Accessors(chain = true)
public class Graphics2DInfo {
    private String content;
    private int size=0;
    private Color color;


    public int getSize(int srcImgWidth) {
        int sizeRes = srcImgWidth / 300 * 10;
        if (sizeRes == 0) {
            sizeRes = 10;
        }
        return sizeRes+size;
    }
}
